#region Copyright (c) 2006 Jonathan Nauman
/*       _\|/_
         (o o)
+-----oOO-{_}-OOo-----------------------+
| Copyright (c) Jonathan Naumann        |
+---------------------------------------+
| 
| File: MonoPad.AboutBox.cs
| Version:	0.1.2
+
*/
#endregion

using System;
using Gtk;
using GtkSharp;
using Gnome;

namespace MonoPad {
	///
	/// Class AboutBox
	///
	public class AboutBox {
		private MonoPadVersion oVersion = new MonoPadVersion();
		private Gnome.About oAB = null;
		
		///
		/// Default Constructor
		///
		public AboutBox() {
			Gdk.Pixbuf pixbuf = new Gdk.Pixbuf(oVersion.ImagePath);
			
			oAB = new Gnome.About(
				oVersion.Name,
				oVersion.Version,
				oVersion.Copyright,
				oVersion.Description,
				oVersion.Authors,
				null,
				null,
				pixbuf
			);
			
			oAB.Close += new EventHandler(OnAboutClose);
			oAB.Response += new ResponseHandler(OnAboutResponse);
			oAB.WindowPosition = Gtk.WindowPosition.Center;
			
			oAB.Run();
		}
		
		///
		/// Close
		///
		private void OnAboutClose(object o, EventArgs args) {
			//Console.WriteLine("Close Event");
		}
		
		///
		/// Response
		///
		private void OnAboutResponse(object o, ResponseArgs args) {
			//Console.WriteLine(args.ResponseId);
		}
	}
}
